import { API_CONFIG } from "../config/index.js";
import request from './index.js'

export const getPodListHandler=(cluster, namespace)=>{
    return request(API_CONFIG.getPodListApi, {cluster, namespace},"get","2000")
}
export const deletePodHandler=(id)=>{
    return request(API_CONFIG.deletePodApi, {id},"get","1000")
}
export const updateClusterHandler=(data)=>{
    console.log("更新集群:",data)
    return request(API_CONFIG.updateClusterApi, data,"post","1000")
}
